using System.Windows.Input;
using CommunityToolkit.Mvvm.ComponentModel;

namespace AvalonAdmin.Models
{
    /// <summary>
    /// 按钮项模型
    /// </summary>
    public class ButtonItem : ObservableObject
    {
        /// <summary>
        /// 按钮名称
        /// </summary>
        public string Name { get; set; } = string.Empty;

        /// <summary>
        /// 按钮命令
        /// </summary>
        public ICommand? InvokeCommand { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnabled { get; set; } = true;
    }
}